﻿using WindowsForms.AOnline.Model;

namespace WindowsForms.AOnline.Presenter
{
    public class Presenter<T>
    {
        /// <summary>
        /// Gets the model.
        /// </summary>
        /// <value>
        /// The model.
        /// </value>
        protected static IModel Model { get; private set; }
        /// <summary>
        /// Initializes the <see cref="Presenter{T}"/> class.
        /// </summary>
        static Presenter()
        {
            Model = new Model.Model();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Presenter{T}"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        public Presenter(T view)
        {
            View = view;
        }
        /// <summary>
        /// Gets the view.
        /// </summary>
        /// <value>
        /// The view.
        /// </value>
        protected T View { get; private set; }
    }
}
